package com.minazuki.signinserver.pojo.msg;

import com.minazuki.signinserver.pojo.api.UserInfo;
import com.minazuki.signinserver.pojo.dao.Course;
import com.minazuki.signinserver.pojo.dao.PublishRecord;
import com.minazuki.signinserver.pojo.dao.SigninRecord;

import java.util.List;

public class Msg<T> {
    private int code;
    private String msg = "";
    private T data;
    private UserInfo userInfo;
    private List<Course> courses;
    private List<PublishRecord> publishRecords;
    private List<SigninRecord> signinRecords;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public List<PublishRecord> getPublishRecords() {
        return publishRecords;
    }

    public void setPublishRecords(List<PublishRecord> publishRecords) {
        this.publishRecords = publishRecords;
    }

    public List<SigninRecord> getSigninRecords() {
        return signinRecords;
    }

    public void setSigninRecords(List<SigninRecord> signinRecords) {
        this.signinRecords = signinRecords;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
